import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {path:'/login',component: () => import('@/components/Login.vue')},
    {
      path:'/',
      component:() => import('@/components/Home.vue')
    }
  ]
})

router.beforeEach((to,from))

export default router